Microsoft® Visual Basic® Scripting Edition
VBScript Features
Language Reference

Contents          


Category Keywords  (*  Denotes New Keywords)
Array handling Array*
Dim, Private*, Public*, ReDim
IsArray
Erase
LBound, UBound

Assignments Set

Comments Comments using ' or Rem
Constants/Literals Empty
Nothing
Null
True, False

Control flow Do...Loop
For...Next
For Each...Next*
If...Then...Else
Select Case
While...Wend
Conversions Abs
Asc, AscB, AscW
Chr, ChrB, ChrW
CBool, CByte
CCur, CDate
CDbl, CInt
CLng, CSng, CStr
DateSerial, DateValue
Hex, Oct
Fix, Int
Sgn
TimeSerial, TimeValue

Dates/Times Date, Time
DateAdd*, DateDiff*, DatePart*
DateSerial, DateValue
Day, Month, Weekday*, Year
Hour, Minute, Second
Now
TimeSerial, TimeValue

Declarations Const*
Dim, Private*, Public*, ReDim
Function, Sub

Formatting Strings FormatCurrency*
FormatDateTime*
FormatNumber*
FormatPercent*

Error Handling On Error
Err

Input/Output InputBox
LoadPicture*
MsgBox

Literals Empty
False
Nothing
Null
True
Math Atn, Cos, Sin, Tan
Exp, Log, Sqr
Randomize, Rnd

Objects CreateObject*
Dictionary*
Err
FileSystemObject*
GetObject*
TextStream*
Operators Addition (+), Subtraction (-)
Exponentiation (^)
Modulus arithmetic (Mod)
Multiplication (*), Division (/), Integer Division (\)
Negation (-)
String concatenation (&)
Equality (=), Inequality (<>)
Less Than (<), Less Than or Equal To (<=)
Greater Than (>), Greater Than or Equal To (>=)
Is
And, Or, Xor
Eqv, Imp

Options Option Explicit
Procedures Call
Function, Sub
Rounding Abs
Int, Fix, Round*
Sgn
Script Engine ID ScriptEngine*
ScriptEngineBuildVersion*
ScriptEngineMajorVersion*
ScriptEngineMinorVersion*
Strings Asc, AscB, AscW
Chr, ChrB, ChrW
Filter*, Instr, InStrB
InstrRev*
Join*
Len, LenB
LCase, UCase
Left, LeftB
Mid, MidB
Right, RightB
Replace*
Space
Split*
StrComp
String
StrReverse*
LTrim, RTrim, Trim

Variants IsArray
IsDate
IsEmpty
IsNull
IsNumeric
IsObject
TypeName*
VarType


© 1997 Microsoft Corporation. All rights reserved. Legal Notices.